const express = require('express');
const router = express.Router();
const authMiddleware = require('../middleware/authMiddleware');
const sellerController = require('../controllers/sellerController');

// 获取卖家订单列表
router.get('/orders', authMiddleware, sellerController.getOrders);

// 更新订单状态
router.put('/orders/:order_id/status', authMiddleware, sellerController.updateOrderStatus);

// 取消订单
router.put('/orders/:order_id/cancel', authMiddleware, sellerController.cancelOrder);

module.exports = router;